package cn.wires.lu.order.service.impl;


import cn.wires.lu.order.dao.FundBaseInfoDao;
import cn.wires.lu.order.entity.FundBaseInfo;
import cn.wires.lu.order.service.FundService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FundServiceImpl implements FundService {
    @Autowired
    private FundBaseInfoDao fundBaseInfoDao;
    @Override
    public FundBaseInfo findById(Integer id) {
        return fundBaseInfoDao.findById(id).get();
    }

    @Override
    public void save(FundBaseInfo product) {
        fundBaseInfoDao.save(product);
    }

    @Override
    public void update(FundBaseInfo product) {
        fundBaseInfoDao.save(product);
    }

    @Override
    public void delete(Integer id) {
        fundBaseInfoDao.deleteById(id);
    }
}
